package cn.liontalk.exception;

import cn.liontalk.enums.ResultEnums;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description
 * @date 2019-04-17 20:49
 **/
public class OrderException extends RuntimeException {


    private Integer code;

    public OrderException (Integer code){
        this.code = code;
    }

    public OrderException (Integer code,String message){
        super(message);
        this.code = code;
    }

    public OrderException (ResultEnums enums){
        super(enums.getMessage());
        this.code = enums.getCode();
    }
}
